#ifndef NCROPLABEL_H
#define NCROPLABEL_H
#include <QtWidgets>
#include "solar/beacon/Field.h"

class NCropLabel : public QLabel{

    Q_OBJECT

public:
    NCropLabel(QString Imgcurtain = NULL, QWidget *parent = nullptr);

    ~NCropLabel();

    void setCoord(int x, int y, int w, int h);

    void setCoord(QRect rect);

    void setFocusEnterState(bool Enable);

    void enterEvent(QEnterEvent*);

    void leaveEvent(QEvent*);

    void setPixmap(QString curtain);

    void mousePressEvent(QMouseEvent *Event);

    void mouseMoveEvent(QMouseEvent *Event);

    void wheelEvent(QWheelEvent *Event);

    void paintEvent(QPaintEvent *Event);

signals:
    void clipping_send(QList<qint64>);
    void clipsize_send(QList<qint64>);
    void msev_etr(bool);

private:
    QMap<QString, qint64> RdoMap_Integer;
    QMap<QString, QString> RdoMap_String;
    QMap<QString, bool> RdoMap_Bool;
    int penwidth;
    KEY_ATTRIBUTE RPLKEY;

    void resizeEvent(QResizeEvent *Event);
};
#endif



